-- GENERATED SPELL FOR [Lydell] --


function spell0_24458(pUnit, Event) --@Lydell\'s Poison,n/a--
pUnit:FullCastSpellOnTarget(43895,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24458', 0, 1)
end

function spell1_24458(pUnit, Event) --@Sunder Armor,n/a--
pUnit:FullCastSpellOnTarget(11971,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24458', 30330, 1)
end

function Sorts_24458(pUnit, Event)
local choix_sorts_24458 = math.random(0, 1)
if choix_sorts_24458 == 0 then
pUnit:RegisterEvent('spell0_24458', 1, 1)
end
if choix_sorts_24458 == 1 then
pUnit:RegisterEvent('spell1_24458', 1, 1)
end
end

function mob24458_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_24458', math.random(1500, 3000), 1)
end

function mob24458_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24458_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24458_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(24458, 1, 'mob24458_Action')
RegisterUnitEvent(24458, 2, 'mob24458_Leave')
RegisterUnitEvent(24458, 3, 'mob24458_Kill')
RegisterUnitEvent(24458, 4, 'mob24458_Die')
